//
//  PlayManager.h
//  Leisure
//
//  Created by 大展 on 16/4/21.
//  Copyright © 2016年 张展. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol PlayManagerDelegate <NSObject>

-(void)playManagerFechRestTime:(NSString *)restTime progress:(CGFloat)progress;

@end


@interface PlayManager : NSObject

@property (nonatomic,weak)id<PlayManagerDelegate>delegate;

+ (PlayManager *)sharedManager;

// 准备根据url去播放电台（仅仅是准备）
- (void)prepareToPlayRadioWithUrl:(NSString *)url;

// 播放电台
- (void)playRadio;

// 暂停电台
- (void)pauseRadio;
@end
